package com.zy.cat.service;

import java.util.List;

import com.zy.cat.entity.app.CatAppUseVideo;
import com.zy.cat.entity.app.resp.CatAppConfigInfoResp;
import com.zy.cat.entity.app.resp.CatAppMessageResp;
import com.zy.cat.entity.app.resp.CatAppNoticeResp;
import com.zy.cat.entity.app.CatAppUseVideo;
import com.zy.cat.entity.app.resp.CatAppVersionInfoResp;
import com.zy.cat.entity.app.resp.NewItemResp;

public interface CatUtilsService {
	
	/**
	 * 
	 * @info 发送短信验证码
	 * @author Link
	 * @date 2019-11-21 17:37
	 * @param stype
	 * @param phone
	 * @param sign
	 * @return
	 */
	boolean sendMsg(int stype, String phone, String sign);

	String test(String pid);

	/**
	 * 检查APP版本升级
	 * @author lipengchao
	 * @apiNote 已完成
	 * @date 2019-12-10 10:34:55
	 * @param rtype
	 * @param brand
	 * @param model
	 * @param vscode
	 * @param pid
	 * @return
	 */
	CatAppVersionInfoResp checkAppVersion(Integer rtype,Integer appId, String brand, String model, String vscode,String cid);

	/**
	 * 获取通知消息
	 * @author lipengchao
	 * @apiNote 已完成
	 * @date 2019-12-10 10:34:55
	 * @param rtype
	 * @param pid
	 * @return
	 */
	CatAppNoticeResp getMessageInfo(Integer rtype, String pid);

	/**
	 * 查询APP启动配置信息
	 * @author lipengchao
	 * @date 2020-05-18 11:33:10 
	 * @param rtype
	 * @param appId
	 * @param version	
	 * @param cid
	 * @return
	 */
	CatAppConfigInfoResp getAppConfigInfo(Integer rtype, Integer appId, String version, String cid);

	/**
	 * 获取推送消息，包括常规消息与商品消息
	 * @author lipengchao
	 * @date 2020-05-28 05:38:57 
	 * @param rtype
	 * @param pid
	 * @return
	 */
	CatAppMessageResp getMessageInfo2(Integer rtype, String pid);

	/**
	 * 获取新闻数据
	 * @author lipengchao
	 * @date 2020-09-23 03:06:49 
	 * @param rtype
	 * @param channel
	 * @param vscode
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	List<NewItemResp> getNewData(Integer rtype, String channel, String vscode, Integer pageNum, Integer pageSize);

	/**
	 * 获取新手教程
	 * @param rtype
	 * @param id
	 * @return
	 */
	List<CatAppUseVideo> getUseVideo(Integer rtype,Integer id);
}
